package cn.gd.service.myMotes.impl;

import cn.gd.mapper.myNotes.MyNotesMapper;
import cn.gd.pojo.Notes;
import cn.gd.service.myMotes.MyNotesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyNotesServiceImpl implements MyNotesService {
    @Autowired
    private MyNotesMapper mapper;

    @Override
    public List<Notes> queryAllNotes(Integer UserId) {
        return mapper.queryAllNotes(UserId);
    }

    @Override
    public Boolean updateNotes(Notes notes) {
        return mapper.updateNotes(notes)>0;
    }

    @Override
    public Boolean addNotes(Notes notes) {
        return mapper.addNotes(notes)>0;
    }
}
